/*
 * @Author: Bable znz980@qq.com
 * @Date: 2022-07-25 21:58:15
 * @LastEditors: Bable znz980@qq.com
 * @LastEditTime: 2022-07-25 22:10:39
 * @FilePath: /circulation-web/src/my_modules/opds-web-client/lib/components/AdvanceSearchForm.tsx
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import * as React from "react";
import { Component } from 'react';
import ReactDOM from 'react-dom';
import swal from 'sweetalert';

const DEFAULT_INPUT_TEXT = "";

export default class AdvanceSearchForm extends Component {
    constructor(props) {
      super(props);
   
      this.state = {
        text: DEFAULT_INPUT_TEXT,
      };
    }
   
    changeText(e) {
      let text = e.target.value;
   
      this.setState({
        text,
      });
   
      /*
       * This will update the value that the confirm
       * button resolves to:
       */
      swal.setActionValue(text);
    }
   
    render() {
      return (
        <input
          value=""
          onChange={this.changeText.bind(this)}
        />
      )
    }
  }